/* 防止图片闪一下 */
image{will-change: transform}
/* scroll-view */
.scroll-row{ width: 100%;white-space: nowrap; }
.scroll-row-item{ display: inline-block!important; }

body{
	--primary:#D3B98C;
	--white:#fff;
	--black:#333;
	--red:#820503;
	--gray:#999;
	--borderColor:#eee;
}

/* 阴影 */
.shadow-sm { box-shadow: 0 0 10rpx 0 rgba(0, 0, 0, 0.04)!important; }
.shadow { box-shadow: 0 8rpx 16rpx rgba(0, 0, 0, 0.04)!important; }
.shadow-lg { box-shadow: 0 16rpx 48rpx rgba(0, 0, 0, 0.04)!important; }
.box-shadow { box-shadow: 0 10rpx 10rpx var(--borderColor); }
.shadow-center { box-shadow: 0  0 10rpx 4rpx rgba(0, 0, 0, 0.1)!important; }

/* 定位 */
.position-absolute{ position: absolute; }
.position-fixed{ position: fixed; }
.position-relative{ position: relative; }
.position-sticky{ position: sticky; }
.left-0{ left: 0; }
.top-0{ top: 0; }
.bottom-0{ bottom: 0; }
.right-0{ right: 0; }

/* 宽高 */
.w-0{ width: 0;}
.w-100{ width: 100%;}
.w-50{ width: 50%;}
.w-max{ width: max-content;}
.h-100{ height: 100%;}
.h-50{ height: 50vh; }

/* 字体 */
.font-ssm{ font-size: 22rpx; }
.font-sm{ font-size: 24rpx; }
.font{ font-size: 28rpx; }
.font-md{ font-size: 32rpx; }
.font-lg{ font-size: 36rpx; }
.font-llg{ font-size: 40rpx; }
.font-lllg{ font-size: 44rpx; }
.font-big{ font-size: 60rpx; }

.font-wg-1{ font-weight: 100; }
.font-wg-2{ font-weight: 200; }
.font-wg-3{ font-weight: 300; }
.font-wg-4{ font-weight: 400; }
.font-wg-5{ font-weight: 500; }
.font-wg-6{ font-weight: 600; }
.font-wg-nor{ font-weight: normal; }

.line-h0{ line-height: 0!important; }
.line-h{ line-height: 1!important; }
.line-h-sm{ line-height: 1.2!important; }
.line-h-md{ line-height: 1.5!important; }
.line-h-lg{ line-height: 2!important; }
.line-h-lgg{ line-height: 2.5!important; }
.line-h-big{ line-height: 3!important; }

.line-through{ text-decoration: line-through; }

.text-center{ text-align: center; }
.text-left{ text-align: left; }
.text-right{ text-align: right; }
.text-indent{ text-indent: 1rem; }
.text-decoration{ text-decoration: underline; }

/* flex布局 */
.d-flex{ display: flex;flex-direction: row!important; }
.d-block{ display: block; }
.d-inline-block{ display: inline-block; }

.flex-1{ flex: 1; }
.flex-column{ flex-direction: column!important; }
.flex-row{ flex-direction: row; }
.flex-wrap{ flex-wrap: wrap; }
.flex-nowrap{ flex-wrap: nowrap; }
.flex-shrink{flex-shrink: 0;}
.j-start{ justify-content: flex-start; }
.j-center{ justify-content: center!important; }
.j-end{ justify-content: flex-end; }
.j-sb{ justify-content: space-between; }
.a-center{ align-items:center!important; }
.a-start{ align-items: flex-start; }
.a-baseline{ align-items: baseline; }
.a-end{ align-items:flex-end; }
.a-stretch{ align-items: stretch; }
.a-self-start{ align-self: flex-start; }
.a-self-auto{ align-self: auto; }
.a-self-end{ align-self: flex-end; }
.a-self-stretch{ align-self:stretch; }
.a-self-baseline{ align-self:baseline; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-around { display: flex; align-items: center; justify-content: space-around; }

/* Border */
.border-big { border-width: 22rpx!important; }
.border{ border-width: 1rpx; border-style: solid; border-color: var(--borderColor);}
.border-top{ border-top-width: 1rpx; border-top-style: solid; border-top-color: var(--borderColor); }
.border-right{ border-right-width: 1rpx; border-right-style: solid; border-right-color: var(--borderColor);}
.border-bottom{ border-bottom-width: 1rpx;border-bottom-style: solid;border-bottom-color:var(--borderColor);}
.border-left{ border-left-width: 1rpx;border-left-style: solid;border-left-color:var(--borderColor);}

.border-0{ border-width: 0; }
.border-top-0{ border-top-width: 0; }
.border-right-0{ border-right-width: 0; }
.border-bottom-0{ border-bottom-width: 0; }
.border-left-0{ border-left-width: 0; }

.border-primary{ border-color: var(--primary)!important }

.rounded{ border-radius: 10rpx; }
.rounded-md{ border-radius: 16rpx; }
.rounded-circle{ border-radius:100%; }
.rounded-0{ border-radius:0; }
.rounded-bottom{ border-radius: 0 0 20% 20%; }

/* color */
.text-primary{ color:var(--primary)!important; }
.text-white{ color:var(--white)!important; }
.text-black{ color:var(--black)!important; }
.text-gray{ color:var(--gray)!important; }

/* background */
.bg-primary{ background-color:var(--primary)!important; }
.bg-white{ background-color:var(--white)!important; }
.bg-black{ background-color:var(--black)!important; }
.bg-red{ background-color:var(--red)!important; }

/* Spacing */
.m-0 { margin-left: 0;margin-right: 0;margin-top: 0;margin-bottom: 0; }
.m { margin-left: 5rpx;margin-right: 5rpx;margin-top: 5rpx;margin-bottom: 5rpx; }
.m-1 { margin-left: 10rpx;margin-right: 10rpx;margin-top: 10rpx;margin-bottom: 10rpx; }
.m-2 { margin-left: 20rpx;margin-right: 20rpx;margin-top: 20rpx;margin-bottom: 20rpx; }
.m-3 { margin-left: 30rpx;margin-right: 30rpx;margin-top: 30rpx;margin-bottom: 30rpx; }
.m-4 { margin-left: 40rpx;margin-right: 40rpx;margin-top: 40rpx;margin-bottom: 40rpx; }
.m-5 { margin-left: 50rpx;margin-right: 50rpx;margin-top: 50rpx;margin-bottom: 50rpx; }
.m-6 { margin-left: 60rpx;margin-right: 60rpx;margin-top: 60rpx;margin-bottom: 60rpx; }

.mx-0 { margin-left: 0;margin-right: 0; }
.mx { margin-left: 5rpx;margin-right: 5rpx; }
.mx-1 { margin-left: 10rpx;margin-right: 10rpx; }
.mx-2 { margin-left: 20rpx;margin-right: 20rpx; }
.mx-3 { margin-left: 30rpx;margin-right: 30rpx; }
.mx-4 { margin-left: 40rpx;margin-right: 40rpx; }
.mx-5 { margin-left: 50rpx;margin-right: 50rpx; }
.mx-6 { margin-left: 60rpx;margin-right: 60rpx; }

.my-0 { margin-top: 0;margin-bottom: 0; }
.my { margin-top: 5rpx;margin-bottom: 5rpx; }
.my-1 { margin-top: 10rpx;margin-bottom: 10rpx; }
.my-2 { margin-top: 20rpx;margin-bottom: 20rpx; }
.my-3 { margin-top: 30rpx;margin-bottom: 30rpx; }
.my-4 { margin-top: 40rpx;margin-bottom: 40rpx; }
.my-5 { margin-top: 50rpx;margin-bottom: 50rpx; }
.my-6 { margin-top: 60rpx;margin-bottom: 60rpx; }

.mt-0 { margin-top: 0; }
.mt { margin-top: 5rpx; }
.mt-auto { margin-top: auto; }
.mt-1 { margin-top: 10rpx; }
.mt-2 { margin-top: 20rpx; }
.mt-3 { margin-top: 30rpx; }
.mt-4 { margin-top: 40rpx; }
.mt-5 { margin-top: 50rpx; }

.mb-0 { margin-bottom: 0; }
.mb { margin-bottom: 5rpx; }
.mb-auto { margin-bottom: auto; }
.mb-1 { margin-bottom: 10rpx; }
.mb-2 { margin-bottom: 20rpx; }
.mb-3 { margin-bottom: 30rpx; }
.mb-4 { margin-bottom: 40rpx; }
.mb-5 { margin-bottom: 50rpx; }

.ml-0 { margin-left: 0; }
.ml { margin-left: 5rpx; }
.ml-auto { margin-left: auto; }
.ml-1 { margin-left: 10rpx; }
.ml-2 { margin-left: 20rpx; }
.ml-3 { margin-left: 30rpx; }
.ml-4 { margin-left: 40rpx; }
.ml-5 { margin-left: 50rpx; }

.mr-0 { margin-right: 0; }
.mr { margin-right: 5rpx; }
.mr-1 { margin-right: 10rpx; }
.mr-2 { margin-right: 20rpx; }
.mr-3 { margin-right: 30rpx; }
.mr-4 { margin-right: 40rpx; }
.mr-5 { margin-right: 50rpx; }

.p-0 { padding-left: 0;padding-right: 0;padding-top: 0;padding-bottom: 0; }
.p { padding-left: 5rpx;padding-right: 5rpx;padding-top: 5rpx;padding-bottom: 5rpx; }
.p-1 { padding-left: 10rpx;padding-right: 10rpx;padding-top: 10rpx;padding-bottom: 10rpx; }
.p-2 { padding-left: 20rpx;padding-right: 20rpx;padding-top: 20rpx;padding-bottom: 20rpx; }
.p-3 { padding-left: 30rpx;padding-right: 30rpx;padding-top: 30rpx;padding-bottom: 30rpx; }
.p-4 { padding-left: 40rpx;padding-right: 40rpx;padding-top: 40rpx;padding-bottom: 40rpx; }
.p-5 { padding-left: 50rpx;padding-right: 50rpx;padding-top: 50rpx;padding-bottom: 50rpx; }
.p-6 { padding-left: 60rpx;padding-right: 60rpx;padding-top: 60rpx;padding-bottom: 60rpx; }
.p-7 { padding-left: 70rpx;padding-right: 70rpx;padding-top: 70rpx;padding-bottom: 70rpx; }

.px-0 { padding-left: 0;padding-right: 0; }
.px { padding-left: 5rpx;padding-right: 5rpx; }
.px-1 { padding-left: 10rpx;padding-right: 10rpx; }
.px-2 { padding-left: 20rpx;padding-right: 20rpx; }
.px-3 { padding-left: 30rpx;padding-right: 30rpx; }
.px-4 { padding-left: 40rpx;padding-right: 40rpx; }
.px-5 { padding-left: 50rpx;padding-right: 50rpx; }
.px-6 { padding-left: 60rpx;padding-right: 60rpx; }
.px-7 { padding-left: 70rpx;padding-right: 70rpx; }

.py-0 { padding-top: 0;padding-bottom: 0; }
.py { padding-top: 5rpx;padding-bottom: 5rpx; }
.py-1 { padding-top: 10rpx;padding-bottom: 10rpx; }
.py-2 { padding-top: 20rpx;padding-bottom: 20rpx; }
.py-3 { padding-top: 30rpx;padding-bottom: 30rpx; }
.py-4 { padding-top: 40rpx;padding-bottom: 40rpx; }
.py-5 { padding-top: 50rpx;padding-bottom: 50rpx; }
.py-6 { padding-top: 60rpx;padding-bottom: 60rpx; }
.py-7 { padding-top: 70rpx;padding-bottom: 70rpx; }

.pt-0 { padding-top: 0; }
.pt { padding-top: 5rpx; }
.pt-1 { padding-top: 10rpx; }
.pt-2 { padding-top: 20rpx; }
.pt-3 { padding-top: 30rpx; }
.pt-4 { padding-top: 40rpx; }
.pt-5 { padding-top: 50rpx; }
.pt-6 { padding-top: 60rpx; }
.pt-7 { padding-top: 70rpx; }
.pt-8 { padding-top: 80rpx; }

.pb-0 { padding-bottom: 0; }
.pb { padding-bottom: 5rpx; }
.pb-1 { padding-bottom: 10rpx; }
.pb-2 { padding-bottom: 20rpx; }
.pb-3 { padding-bottom: 30rpx; }
.pb-4 { padding-bottom: 40rpx; }
.pb-5 { padding-bottom: 50rpx; }
.pb-6 { padding-bottom: 60rpx; }
.pb-7 { padding-bottom: 70rpx; }
.pb-8 { padding-bottom: 80rpx; }

.pl-0 { padding-left: 0; }
.pl { padding-left: 5rpx; }
.pl-1 { padding-left: 10rpx; }
.pl-2 { padding-left: 20rpx; }
.pl-3 { padding-left: 30rpx; }
.pl-4 { padding-left: 40rpx; }
.pl-5 { padding-left: 50rpx; }
.pl-6 { padding-left: 60rpx; }
.pl-7 { padding-left: 70rpx; }

.pr-0 { padding-right: 0; }
.pr { padding-right: 5rpx; }
.pr-1 { padding-right: 10rpx; }
.pr-2 { padding-right: 20rpx; }
.pr-3 { padding-right: 30rpx; }
.pr-4 { padding-right: 40rpx; }
.pr-5 { padding-right: 50rpx; }
.pr-6 { padding-right: 60rpx; }
.pr-7 { padding-right: 70rpx; }

/* 字体超出省略 */
.font-hidden { overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:1; word-break: break-all; }
.font-hidden2 { overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; word-break: break-all; }
.white-space-nowrap { white-space: nowrap; }
.word-break-all { word-break: break-all; }

/* box-sizing */
.border-box { box-sizing: border-box; }
.content-box { box-sizing: content-box; }

.ios-appearance {
	-webkit-appearance: none;
}

/* overflow */
.overflow-h { overflow: hidden; }
.overflow-auto { overflow: auto; -webkit-overflow-scrolling: touch; }

/* z-index */
.z-index { z-index: 1; }
.z-index-0 { z-index: 0; }
.z-index-sm { z-index: 998; }
.z-index-md { z-index: 999; }
.z-index-lg { z-index: 1000; }

.opacity { opacity: 0; }
.disabled { pointer-events: none; cursor: default; opacity: 0.6; }